// 该文件是整个项目的入口
//vue
import Vue from 'vue'
// default-passive-events

// 引入vue-router
import VueRouter from "vue-router"

// 引入路由器, 命名为index.js可以不用引入*.js
import router from './router'
// echarts
import * as echarts from 'echarts';
Vue.use(echarts)

// 引入element-ui
import ElementUI from 'element-ui'
import locale from 'element-ui/lib/locale/lang/en'
import 'element-ui/lib/theme-chalk/index.css';           // element-ui的css样式要单独引入

// 引入App组件，该组件是所有组件的父组件
import axios from 'axios'
Vue.prototype.$axios = axios;
import $ from 'jquery'

import App from './App.vue'

import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap,{
  ak:'pQnehfOE6piTwPVOGhkMrdvXO8q3izR0'
})
// 关闭vue生产提示信息
Vue.config.productionTip = false

// 应用VueRouter ...
Vue.use(VueRouter)
Vue.use( ElementUI, {locale})
Vue.prototype.$ = $
// Vue.prototype.axios = axios
// 创建vue实例对象
/*
new Vue({
  render: h => h(App),
}).$mount('#app')
 */
new Vue({
  el: "#app",
  render: h => h(App),
  router: router
})